package org.jackysoft.service;

import java.util.Collection;

import org.jackysoft.data.ServiceProvider;
import org.jackysoft.entity.Department;
import org.jackysoft.ztree.ZTreeNode;
import org.springframework.dao.DataAccessException;

public interface DepartmentService extends ServiceProvider<Department> {

	Collection<Department> getChildren(String parentId)	throws DataAccessException;	

	Collection<ZTreeNode> ztree(Department bean,Collection<Integer> dtypes) throws DataAccessException;

	
	Collection<Department> getChildren(int type)
			throws DataAccessException;

	Department getDepartment(String name) throws DataAccessException;
	
	Collection<Department> fromWorkflowSetting(String value);
	
	Department findByUser(String user);
}